package org.whatever.aha.zjut.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.whatever.aha.zjut.platform.entity.AcademyAdmin;

/**
 * @author Vc
 * @version 1.0
 * @Desc
 * @date 2021/11/02 0:08
 */
public interface AcademyAdminMapper extends BaseMapper<AcademyAdmin> {
    @Select("select academy_id from academy_admin where user_id = #{userId} ")
    int getAcademyIdByUserId(@Param("userId")int userId);
}
